﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace jQM
{
    public class Group<T> where T : BasicListItem
    {
        public string Header { get; set; }
        public IEnumerable<T> Items { get; set; }

        public Group() { }

        /// <summary>
        /// Creates a list item grouping.
        /// </summary>
        /// <param name="header">Title of the grouping.</param>
        /// <param name="items">Items in the group.</param>
        public Group(string header, IEnumerable<T> items)
        {
            Header = header;
            Items = items;
        }
    }
}